import { reactive } from "vue";
import { AuthStorage } from "@/storage/auth.storage";
import { TenantStorage } from "@/storage/tenant.storage";

export const getHeaders = () => {
  let tenantId = TenantStorage.getAuthTenant();
  return reactive({
    "X-Access-Token": AuthStorage.getAuthToken(),
    "X-Tenant-Id": tenantId ? tenantId : "0",
  });
};
